SFTP Session
AutomatR.SFTP.SFTPSession
The "SFTP Session" activity in AutomatR is part of the SFTP activities package, facilitating the establishment of a connection to an SFTP server for performing various SFTP activities. This activity serves as the initial step for interacting with an SFTP server in an automation workflow.
Properties
Name | Description |
---|---|
Input | |
Host | Specifies the address of the SFTP server to which you wish to connect. String variables containing the server address. |
Password | Specifies the password to use when connecting to the SFTP server. String variables containing the password. |
Port | Specifies the port number of the SFTP server to which you want to connect. Integer variables containing the port number. |
User Name | Specifies the username to use when connecting to the SFTP server. String variables containing the username. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before starting the activity. Useful for handling synchronization issues. |
Output | |
Result | Provides a connected SftpClient object that can be used for additional SFTP activities. Variables of type SftpClient to store the connected client object. |
How to use:
- Drag and drop the "SFTP Session" activity onto the workflow.
- Configure the properties by specifying the SFTP server details, including host, port, username, and password.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to establish a connection to the SFTP server.
- The connected
SftpClient
object is available as an output, which can be used in subsequent SFTP activities.
Example:
Consider an example where the "SFTP Session" activity is used to establish a connection to an SFTP server:
SFTP Session:
Display Name: "Connect to SFTP Server"
Host: "sftp.example.com"
Port: 22
User Name: "username"
Password: "password"
Result: sftpClientObject
In this example, the activity establishes a connection to the SFTP server with the specified details. The connected SftpClient
object (sftpClientObject
) can be used in subsequent SFTP activities within the workflow.